#include <header.h>

int main(){

    DIR * dir = opendir("/home/snow/3th/04_Linux/CODE/Day15");
    ERROR_CHECK(dir, NULL, "opendir");


    struct dirent * dt = readdir(dir);
    while(dt != NULL){
        // dt代表读取的每一个子文件/目录信息

        printf("file_name: %s \n", dt->d_name);

        dt = readdir(dir);
    }


    closedir(dir);
    return 0;
}

